#include"Wheels.h"
#include"MySerial2.h"

unsigned char *vel_x_char,*vel_y_char,*vel_z_char;

void serialCallback(unsigned char PortIndex,unsigned char *data,unsigned char data_len)
{
  if(PortIndex==0x01)
  {
    SetVelocity(*vel_x_char,*vel_y_char,*vel_z_char);
  }
}

void setup()
{
  // put your setup code here, to run once:
  SerialInit(19200,1,serialCallback);
  vel_x_char=&RxData[0];
  vel_y_char=&RxData[1];
  vel_z_char=&RxData[2];
}

void loop()
{
  // put your main code here, to run repeatedly:
  SerialUpdate();
}
